<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/home.css" />
<script type="text/javascript" src="../../javascript/jquery-1.4.4.js"></script>
<script type="text/javascript" src="../../javascript/jquery-ui-1.8.5.custom.min.js"></script>
<!-- styles needed by jScrollPane -->
<link type="text/css" href="../../javascript/jquery.jscrollpane.css" rel="stylesheet" media="all" />

<script type="text/javascript" src="../../javascript/jquery.mousewheel.js"></script>

<!-- the jScrollPane script -->
<script type="text/javascript" src="../../javascript/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="../../javascript/home.js"></script>

<div id="wrap" class="clearfix">
	<div id="form">
		<table id="form_table">
			<tr>
				<td id="form-left"></td>
				<td id="form-middle">
					<textarea  id="publish_editor" ></textarea>
					<div id="update_button"></div>
				</td>
				<td id="form-right"></td>
			</tr>
		</table>
	
	</div>
	<div id="form_panel">
	<?php
		$user_id = Yii::app()->getModule('user')->user()->id;
		$myservices = Services::model()->findAll('user_id=:uid', array(':uid'=>$user_id));
		Yii::trace(print_r($myservices,true));
		$data = array();
		foreach($myservices as $s) {
			$type = $s->type;
			$service = new $type($s->param1, $s->param2);
			$data[$s->id] = $service->getMyName() . "($type)";
		}
		echo CHtml::checkBoxList ('services', array(), $data);
		
	?>
	</div>
	<div id="button">
		<a href="/sweetns/index.php/setting">
			<div id="setting"></div>
		</a>
	</div>
	<div id="updatesuccess">更新成功！</div>
	<div id="content" class="clearfix">
	
	<div id="left">
		<div id="lefttop"></div>
			<div id="leftbody">
				
				<div id ="leftcontent">
					<div id="left_item_1">新鲜事</div>
					<ul id="leftlist1">
						<li  name="sweet" class="selected">全部</li>
						<li name="RENREN">人人</li>
						<li name="Douban">豆瓣</li>
						<li name="twitter">Twitter</li>
						<!--<li >新浪微博</li>-->
					</ul>
					<div id="left_item_2">关于我的</div>
					<ul id="leftlist2">
						<li >回复我的</li>
						<li >转发</li>
					</ul>
					<div id="left_item_3">消息过滤</div>
					<ul id="leftlist3">
						<li id="feedlink">分享链接</li>
						<li id="feedlong">长篇大论</li>
					</ul>
				</div>
		
			
				</div>
			<div id="leftbottom"></div>
		</div>
		<div id="middle">
			<div id='middle_form' class="middle_components"> 
			
			<table>
				<tr>
					<td id="middle-top-left"></td>
					<td id="middle-top-middle"></td>
					<td id="middle-top-right"></td>
				</tr>
				<tr>
					<td id="middle-middle-left"></td>
					<!-- The main section-->
					<td id="middle-middle-middle">
					<div id="main_content">
						<div class="sweet clearfix">
							<div class="avatar"><img src="http://img.m.renren.com/gn?op=resize&w=60&p=283512937"></img></div>
							<div class="feed_content">
								<div class="feeder_name">吴敬峰:</div>
								<div class="feeder_say">今天天气不错哦~挺风和日丽的~！</div>
								<div class="feed_info">2010-11-18 18:43:14</div>
							</div>
						</div>
					</div> <!-- feed end-->
					</td>
					<td id="middle-middle-right"></td>
				</tr>
				<tr>
					<td id="middle-bottom-left"></td>
					<td id="middle-bottom-middle"></td>
					<td id="middle-bottom-right"></td>
				</tr>
			</table>
				<div id="triangle_pointer" class="middle_components"></div>
			</div>
				
		</div>
		
		
		<div id="right">
			<div id="right-top"></div>
				<div id="right-middle">
					<div id="right_container"><!--container   -->
						<div id="profile_tittle">用户信息</div>
						<div id="profile" class="clearfix">
							<ul class="clearfix">
								
							</ul>
							<!--
							<div id="renren_profile" class="clearfix">
								<div id="profile_avatar">
								</div>
								<div id="profile_detail">
								</div>
							</div>-->
							
						</div>
					</div><!--end container -->
				</div>
			<div id="right-bottom"></div>
		</div>
	</div>

</div>
	

